package com.golddaymicromall.activity;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;

import com.golddaymicromall.base.BaseActivity;

public class SuccessActivity extends BaseActivity implements View.OnClickListener{

    private Button mGoSale;




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        initView();
    }

    private void initView() {
        mGoSale = (Button) findViewById(R.id.goSale);
        mGoSale.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.goSale:
                finish();
        }
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
            finish();
            return true;
        } else
            return super.onKeyDown(keyCode, event);
    }
}
